package scau.jump.securitytrace.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

	 public static String format(Date date, String pattern) {
		  if (date == null) {
		   return "";
		  }
		  SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
		  return  simpleDateFormat.format(date);
		 }
}
